
export const word =(state="我要精通redux",action)=>{
    const{type,payload}=action;
    switch(type){
        case "changeWord":
        return payload;  //解构 返回新的state
        break;

        default:
            return state
            break;
    }
  }